package com.bjsxt.livegoods.recommendation.client.service.impl;

import com.bjsxt.livegoods.recommendation.client.service.RecommendationService;
import org.springframework.stereotype.Service;

/**
 * 服务降级
 */
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@Service
public class RecommendationServiceImpl implements RecommendationService {
    @Override
    public Map<String, Object> recommendation(String city) {
        Map<String,Object> result=new HashMap<>();
        result.put("status",200);
        List<Map<String,Object>> data=new ArrayList<>();
        Map<String,Object> map=new HashMap<>();
        map.put("id","6347e63e83bab0625ce7c81e");
        map.put("title","上海叠拼");
        map.put("img","http://192.168.222.128:8888/group1/M00/00/00/wKjegGKUyquAUnO2AAA8Yoqk7Gg151.jpg");
        map.put("link","/details?id=6347e63e83bab0625ce7c81e");
        //存入四份做服务容灾
        data.add(map);
        data.add(map);
        data.add(map);
        data.add(map);
        result.put("data",data);
        return result;
    }
}
